attrs=["姓名","性别","100m","3000m","跳高","跳远","项目总数"]
table=[["王平","男",1,1,0,0,2],
       ["李丽","女",0,1,0,1,2],
       ["陈小梅","女",0,0,1,0,1],
       ["孙洪涛","男",0,1,1,1,3],
       ["方亮","男",1,0,1,0,2]]
m=0
for i in range(0,5):
    if table[i][6] >= 2:
        m=m+1
print("报名项目超过两项的学生:",m)
print("女生的报名情况")
for i in range(0,5):
    if table[i][1]=="女":
        print(table[i])
print("报名3000m的学生姓名和性别:")
for i in range(0,5):
    if table[i][3]==1:
        print("姓名:{}   性别:{}".format(table[i][0],table[i][1]))
